//
//  NotificationHelper.m
//  BusinessMarket
//
//  Created by Michael Li on 2018/11/14.
//  Copyright © 2018年 Michael Li. All rights reserved.
//

#import "NotificationHelper.h"

@implementation NotificationHelper
+(void)addNotificationForName:(NSString *)notificationName
{
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notificationName:) name:notificationName object:nil];
}
+ (void)postNotificationForName:(NSString *)notificationName userInfo:(NSDictionary *)userInfo
{
    NSNotification *notification = [NSNotification notificationWithName:notificationName object:nil userInfo:userInfo];
    [[NSNotificationCenter defaultCenter]postNotification:notification];
}

@end
